package com.tony.thread;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @author tony
 * @Date 2018/11/23
 */
@Component
@Scope("prototype")
@Slf4j
public class BusinessThread implements Runnable {

    @Setter
    @Getter
    private String message;

    public BusinessThread(String message) {
        this.message = message;
    }

    @Override
    public void run() {
        log.info("信息处理中,信息:{}",message);
    }
}
